﻿<?php
/** wget.php created by Mario Priebe (c)2008 
	http://www.biggle.de/blog/wget-auch-ohne-shellzugriff-mit-wgetphp
*/
     $url = "http://www.url.tld/file.zip";
     $file = "file.zip";
 
     $esc = escapeshellarg($url);
     exec("wget " . $esc);
 
   //nachfolgend entsprechende extension auskommentieren
     //$shell = "tar -xzvf $file"; //tar
     //$shell = "unzip $file"; //zip
 
     $shell = escapeshellcmd($shell);
     exec($shell,$nu);
 
   //file loeschen
     $del = "rm $file";
     $del = escapeshellcmd($del);
     exec($del,$nu);
 
     print_r("done");
?>